package com.sooth.system.role.service;

import com.dream.boot.impl.ServiceImpl;
import com.sooth.system.role.mapper.SysRoleMapper;
import com.sooth.system.role.view.SysRoleBo;
import com.sooth.system.role.view.SysRoleVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@RequiredArgsConstructor
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleVo, SysRoleBo> implements ISysRoleService {
    private final SysRoleMapper roleMapper;

    @Override
    public List<SysRoleVo> queryRoleByUserId(Long userId) {
        return roleMapper.queryRoleByUserId(userId);
    }
}
